package com.yuanyi;

import com.yuanyi.util.AccessTokenUtil;
//import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.redisson.Redisson;
import org.redisson.config.Config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
//@Configuration
//@EnableAutoConfiguration
//@EnableAdminServer
public class ZhangzhengApplication {



	public static void main(String[] args) {

//		new Thread(new Runnable() {
//			@Override
//			public void run() {
//				while(true){
//
//
//
//					try {
//						AccessTokenUtil.findAccessToken();
//						Thread.sleep(1000*60*60*2);
//					} catch (InterruptedException e) {
//						e.printStackTrace();
//					} catch (Exception e) {
//						e.printStackTrace();
//					}
//				}
//			}
//		}).start();

		SpringApplication.run(ZhangzhengApplication.class, args);

		//openid
		//access_token
		//js-sdk
	}

}
